<?php

namespace App\Policies;

use App\Models\Tieba;
use App\Models\User;
use Illuminate\Auth\Access\HandlesAuthorization;

class TiebaPolicy
{
    use HandlesAuthorization;

    /**
     * Create a new policy instance.
     *
     * @return void
     */
    /*public function __construct()
    {
        //
    }
    */

    public function update(User $currentUser, User $user)
    {
        return true;
    }
    public function create(User $currentUser, Tieba $tieba)
    {
        return $currentUser->id === 1;
    }
}
